<?php /* Smarty version 2.6.14, created on 2014-11-10 14:14:47
         compiled from acl.edit.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table width="100%" cellspacing="0" border="0" class="adminform">
  <tr>
    <th><?php echo $this->_tpl_vars['systemLang']['parentResouces']; ?>
</th>
  </tr>
  <tr>
    <td><select name="acl[top_id]">
        <option value="0"><?php echo $this->_tpl_vars['systemLang']['module']; ?>
</option>
        <?php $_from = $this->_tpl_vars['aclTree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tmp']):
?>
        <option value="<?php echo $this->_tpl_vars['tmp']['acl_id']; ?>
" <?php if ($this->_tpl_vars['aclData']['top_id'] == $this->_tpl_vars['tmp']['acl_id']): ?>selected<?php endif; ?>>
        <?php echo $this->_tpl_vars['tmp']['acl_name']; ?>

        <?php endforeach; endif; unset($_from); ?>
      </select>
    </td>
  </tr>
  <tr>
    <th><?php echo $this->_tpl_vars['systemLang']['resourcesName']; ?>
</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_name]" class="text" value="<?php echo $this->_tpl_vars['aclData']['acl_name']; ?>
" dataType='Require' msg='<?php echo $this->_tpl_vars['systemLang']['resouceNameNotEmpty']; ?>
' /></td>
  </tr>
  <tr>
    <th><?php echo $this->_tpl_vars['systemLang']['resoucesMark']; ?>
</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_value]" class="text" value="<?php echo $this->_tpl_vars['aclData']['acl_value']; ?>
"  dataType='Custom' regexp='[a-z_]+' msg='<?php echo $this->_tpl_vars['systemLang']['resouceNameNotEmtpyEn']; ?>
'/></td>
  </tr>
  <tr>
    <th><?php echo $this->_tpl_vars['systemLang']['subMethod']; ?>
</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_children]" class="text" value="<?php echo $this->_tpl_vars['aclData']['acl_children']; ?>
"  />
  </tr>
  <tr>
    <th><?php echo $this->_tpl_vars['systemLang']['resoucesDesc']; ?>
</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_desc]" class="text" value="<?php echo $this->_tpl_vars['aclData']['acl_description']; ?>
" /></td>
  </tr>
  <tfoot>
  <tr>
  	<td><input type="submit" name="submit" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" /></td>
  </tr>
  </tfoot>
</table>
<input type="hidden" name="acl_id" value="<?php echo $this->_tpl_vars['aclData']['acl_id']; ?>
" />
</form>